﻿<UserControl x:Class="SilverlightClientEditor.View.Components.ViewEditorUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Column="1" Grid.ColumnSpan="2">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock>Name:</TextBlock>
                        <TextBox Name="nameTextBox"></TextBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock>State:</TextBlock>
                        <ComboBox Name="viewStatesComboBox"></ComboBox>
                        <Button Name="removeStateButton">-</Button>
                        <ComboBox Name="gameViewStatesComboBox"></ComboBox>
                        <Button Name="addStateButton">+</Button>                     
                    </StackPanel>
                </StackPanel>
                <Grid x:Name="MapContainer" Width="100" Height="100" Grid.Row="1" Grid.ColumnSpan="6"/>
                <!-- combobox com animacao -->
                <ComboBox Name="ShapeTypesComboBox" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
                </ComboBox>
                <Button Name="addShapeButton" Grid.Row="2" Grid.Column="2" Click="Button_Click">add</Button>

                <ListBox Name="shapeListBox" Grid.Row="3" Grid.Column="1" MinHeight="50" Grid.RowSpan="4" Margin="0,6,0,-6"></ListBox>
                <Grid HorizontalAlignment="Center" VerticalAlignment="Bottom" Name="ShapeMovePanel"  Grid.Row="3" Grid.Column="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Button Name="moveShapeUpButton" Grid.Column="1" Grid.Row="0" Click="Button_Click">^</Button>
                    <Button Name="moveShapeLeftButton" Grid.Column="0" Grid.Row="1" Click="Button_Click">&lt;</Button>
                    <Button Name="moveShapeRightButton" Grid.Column="3" Grid.Row="1" Click="Button_Click">&gt;</Button>
                    <Button Name="moveShapeDownButton" Grid.Column="1" Grid.Row="2" Click="Button_Click">\/</Button>
                    <Button Name="scaleShapeUpButton" Grid.Column="2" Grid.Row="0" Click="Button_Click">+</Button>
                    <Button Name="scaleShapeDownButton" Grid.Column="0" Grid.Row="0" Click="Button_Click">-</Button>
                    <Button Name="rotateShapeLeftButton" Grid.Column="0" Grid.Row="2" Click="Button_Click">l</Button>
                    <Button Name="rotateShapeRightButton" Grid.Column="2" Grid.Row="2" Click="Button_Click">r</Button>
                </Grid>
                <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="2">
                    <Button Name="editShapeButton">edit</Button>
                    <Button Name="removeShapeButton">remove</Button>
                </StackPanel>
                

                
            </Grid>
            <Button Name="okButton" Click="Button_Click" Content="Ok"></Button>
            <Button Name="cancelButton" Click="Button_Click" Content="Cancel"></Button>
        </StackPanel>
    </Grid>
</UserControl>
